package com.lightkits.wms.controller;

import com.lightkits.wms.domain.rawmatstorage.*;
import com.lightkits.wms.dto.rawmatstorage.*;
import io.choerodon.swagger.annotation.Permission;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * RawMatStorageService
 *
 * @author jing.wei@hand-china.com
 * Created on 2019/4/20 23:33
 */
/*@SuppressWarnings("all")*/
/*@LightKitsContract(serviceName = "RawMatStorageService", serviceNamespace = "center.soa.os-wms.com")*/
@RestController
@RequestMapping("/RawMatStorageService")
public class RawMatStorageController {
    @PostMapping(value = "/rawMatStorage")
    @Permission(permissionPublic = true)
    @ApiOperation(value = "/rawmatstorage")
    @ResponseBody
    public RawMatStorageResponseType rawMatStorage(@RequestBody(required = false) RawMatStorageRequestType request) {
        return rawMatSorageExecutor.service(request);
    }

    @Autowired
    private RawMatSorageExecutor rawMatSorageExecutor;
}
